package yt.kpool.adapter;

import android.app.Activity;
import android.content.Context;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.king.base.adapter.ViewHolderRecyclerAdapter;
import com.king.base.adapter.holder.ViewHolder;

import java.util.List;

import yt.kpool.R;
import yt.kpool.activity.setting.PaySetDetailAc;
import yt.kpool.bean.ChildAccountBean;
import yt.kpool.bean.MinerBean;
import yt.kpool.bean.ReturnPointBean;


/**
 * 返点查询
 */
public class ReturnPointAdapter extends ViewHolderRecyclerAdapter<ReturnPointBean.DataBean.ProportionRunningsBean> {
    private Context context;
    public ReturnPointAdapter(Context context, List<ReturnPointBean.DataBean.ProportionRunningsBean> data) {
        super(context, data);

        this.context=context;

    }
    @Override
    public View buildConvertView(LayoutInflater layoutInflater, int viewType) {
        return layoutInflater.inflate(R.layout.item_returnpoint,null);
    }

    @Override
    public void bindViewDatas(ViewHolder holder, ReturnPointBean.DataBean.ProportionRunningsBean proportionRunningsBean, int position) {
        holder.setText(R.id.tv_Amount,proportionRunningsBean.getAmount()+"");
        holder.setText(R.id.tv_time,proportionRunningsBean.getCreatedTime());

    }


}
